package com.yanqu.road.entity.activity.tripletown;

import java.util.ArrayList;
import java.util.List;

public class Monster {

    /**
     * 怪id
     */
    int id;
    /**
     * 总血量
     */
    int hp;
    /**
     * 占位（列）
     */
    List<Integer> cols = new ArrayList<>();
    /**
     * 当前血量
     */
    int blood;
    /**
     * 占位：起始列
     */
    int x;
    /**
     * 占位：起始行
     */
    int y;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public List<Integer> getCols() {
        return cols;
    }

    public void setCols(List<Integer> cols) {
        this.cols = cols;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public Monster clone(){
        Monster monster = new Monster();
        monster.setId(this.id);
        monster.setHp(this.hp);
        monster.setBlood(this.blood);
        monster.setX(this.x);
        monster.setY(this.y);
        monster.setCols(new ArrayList<>(this.cols));
        return monster;
    }
}
